package org.holynite.fieldmanage.repositories.impl

import org.holynite.fieldmanage.entities.AdministratorRole
import org.holynite.fieldmanage.entities.RolePrivilege
import org.holynite.fieldmanage.persistence.AdministratorRoleEAO
import org.holynite.fieldmanage.repositories.BaseEAO

import javax.ejb.Stateless

/**
 * Created by midnite on 15/1/12.
 */
@Stateless(name = "roleEAO")
class AdministratorRoleEAOImpl extends BaseEAO implements AdministratorRoleEAO {
	@Override
	List<AdministratorRole> getAllAdministratorRoles() {
		def query = em.createQuery("select ar from AdministratorRole as ar")
		query.resultList
	}
}
